By default, a regular return
returns from whatever function it is in. So,
here, return
returns from somethingifier()
. If our list contained no
three-letter words, we would see "Done!" printed at the end. Instead, we
return all the way out of somethingifier()
. So, return
returns from
the function, not just some lambda expression that wraps the return
.
Tags: